﻿<?php get_header();?>
<?php get_sidebar();?>
<div id="primary">
	<div class="post-nav">
		<span class="previous floatleft"><?php previous_posts_link('%link');?></span>
		<span class="next floatright"><?php previous_posts_link('%link');?></span>
	</div>
	<!-- end .post-nav-->	
	<?php if(have_posts()):while(have_posts()):the_post();?>  
	<div class="post-item">
		<?php $thumb = get_post_meta($post->ID,'hình đại diện',true);?>		
		<a href="<?php the_permalink();?>"><img src="<?php bloginfo('stylesheet_directory')?>/timthumb.php?src=<?php echo $thumb;?>&amp;h=180;&amp;w=162;zc=1" alt="avatar"/></a>
		<h3><a href="<?php the_permalink();?>"><?php the_title();?></a></h3>
		<p class="metadata">
		  <span class="post"></span> <strong><?php the_author();?></strong>
			<span class="date"></span> <strong><?php the_time('d.m.Y');?></strong>
			<span class="cat"></span> <a href="#"><?php the_category(', ');?></a>
			<span class="comment">Bình luận: </span><a href="<?php comments_link();?>"><?php comments_number()?></a>
		</p>
		<p class="content">
			<?php the_content();?>
		</p>
		<div class="cl clear"></div>
	</div>
	<!-- end #.post-item-->
	<?php endwhile;?>
	<?php else:?>
	<p>Không có bài viết nào !</p>
	<?php endif?>
</div>
<!-- end primary-->
<?php get_footer();?>

